﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for ContactUs
/// </summary>
namespace CE.ContactUs
{
    public class ContactUs
    {
        public ContactUs()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }
        private Int64 _cuid;
        private string _salutation;
        private string _name;
        private string _designation;
        private string _companyname;
        private string _tel;
        private string _email;
        private string _typeofservice;
        private string _preferredcountry;
        private string _industry;
        private string _comments;

        //common field name
        private DateTime _createddate;
        private DateTime _modifieddate;


        public Int64 CUId
        {
            get { return _cuid; }
            set { _cuid = value; }
        }

        public string Salutation
        {
            get { return _salutation; }
            set { _salutation = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Designation
        {
            get { return _designation; }
            set { _designation = value; }
        }

        public string CompanyName
        {
            get { return _companyname; }
            set { _companyname = value; }
        }

        public string Tel
        {
            get { return _tel; }
            set { _tel = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string TypeofService
        {
            get { return _typeofservice; }
            set { _typeofservice = value; }
        }

        public string PreferredCountry
        {
            get { return _preferredcountry; }
            set { _preferredcountry = value; }
        }

        public string Industry
        {
            get { return _industry; }
            set { _industry = value; }
        }

        public string Comments
        {
            get { return _comments; }
            set { _comments = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _cuid = 0;
            _salutation = "";
            _name = "";

            _designation = "";
            _companyname = "";
            _tel = "";
            _email = "";
            _typeofservice = "";
            _preferredcountry = "";
            _industry = "";
            _comments = "";

            //common field name
            _createddate = new DateTime(1900, 1, 1);
            _modifieddate = new DateTime(1900, 1, 1);

        }

    }
}
